home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Updates / PowerPC / pdflib / configure < prev    next >
Text File  |  2000-05-16  |  69KB  |  2,307 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --without-cxx               Disable C++ test program"
  16. ac_help="$ac_help
  17.   --with-debug                Enable debugging configuration (implies static)"
  18. ac_help="$ac_help
  19.   --with-static               Enable building the static library"
  20. ac_help="$ac_help
  21.   --with-java=path            Set location of Java Developers Kit"
  22. ac_help="$ac_help
  23.   --with-tcl=path             Set location of Tcl executable"
  24. ac_help="$ac_help
  25.   --with-tclpkg=path          Set location of Tcl package install directory"
  26. ac_help="$ac_help
  27.   --with-tclincl=path         Set location of Tcl include directory"
  28. ac_help="$ac_help
  29.   --with-py=path              Set location of Python root directory"
  30. ac_help="$ac_help
  31.   --with-pyincl=path          Set location of Python include directory"
  32. ac_help="$ac_help
  33.   --with-perl5=path           Set location of Perl5 executable"
  34. ac_help="$ac_help
  35.   --with-perlincl=path        Set location of Perl include directory"
  36. ac_help="$ac_help
  37.   --with-tiff=path            Set location of TIFF root directory"
  38. ac_help="$ac_help
  39.   --with-tiffincl=path        Set location of TIFF include directory"
  40. ac_help="$ac_help
  41.   --with-tifflib=path         Set location of TIFF library directory"
  42. ac_help="$ac_help
  43.   --with-jpeg=path            Set location of JPEG source directory"
  44. ac_help="$ac_help
  45.   --with-jpeglib=path         Set location of JPEG library directory"
  46. ac_help="$ac_help
  47.   --with-zlib=path            Set location of ZLIB source directory"
  48. ac_help="$ac_help
  49.   --with-zlibincl=path        Set location of ZLIB include directory"
  50. ac_help="$ac_help
  51.   --with-zliblib=path         Set location of ZLIB library directory"
  52.  
  53. # Initialize some variables set by options.
  54. # The variables have the same names as the options, with
  55. # dashes changed to underlines.
  56. build=NONE
  57. cache_file=./config.cache
  58. exec_prefix=NONE
  59. host=NONE
  60. no_create=
  61. nonopt=NONE
  62. no_recursion=
  63. prefix=NONE
  64. program_prefix=NONE
  65. program_suffix=NONE
  66. program_transform_name=s,x,x,
  67. silent=
  68. site=
  69. srcdir=
  70. target=NONE
  71. verbose=
  72. x_includes=NONE
  73. x_libraries=NONE
  74. bindir='${exec_prefix}/bin'
  75. sbindir='${exec_prefix}/sbin'
  76. libexecdir='${exec_prefix}/libexec'
  77. datadir='${prefix}/share'
  78. sysconfdir='${prefix}/etc'
  79. sharedstatedir='${prefix}/com'
  80. localstatedir='${prefix}/var'
  81. libdir='${exec_prefix}/lib'
  82. includedir='${prefix}/include'
  83. oldincludedir='/usr/include'
  84. infodir='${prefix}/info'
  85. mandir='${prefix}/man'
  86.  
  87. # Initialize some other variables.
  88. subdirs=
  89. MFLAGS= MAKEFLAGS=
  90. # Maximum number of lines to put in a shell here document.
  91. ac_max_here_lines=12
  92.  
  93. ac_prev=
  94. for ac_option
  95. do
  96.  
  97.   # If the previous option needs an argument, assign it.
  98.   if test -n "$ac_prev"; then
  99.     eval "$ac_prev=\$ac_option"
  100.     ac_prev=
  101.     continue
  102.   fi
  103.  
  104.   case "$ac_option" in
  105.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  106.   *) ac_optarg= ;;
  107.   esac
  108.  
  109.   # Accept the important Cygnus configure options, so we can diagnose typos.
  110.  
  111.   case "$ac_option" in
  112.  
  113.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  114.     ac_prev=bindir ;;
  115.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  116.     bindir="$ac_optarg" ;;
  117.  
  118.   -build | --build | --buil | --bui | --bu)
  119.     ac_prev=build ;;
  120.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  121.     build="$ac_optarg" ;;
  122.  
  123.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  124.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  125.     ac_prev=cache_file ;;
  126.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  127.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  128.     cache_file="$ac_optarg" ;;
  129.  
  130.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  131.     ac_prev=datadir ;;
  132.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  133.   | --da=*)
  134.     datadir="$ac_optarg" ;;
  135.  
  136.   -disable-* | --disable-*)
  137.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  138.     # Reject names that are not valid shell variable names.
  139.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  140.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  141.     fi
  142.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  143.     eval "enable_${ac_feature}=no" ;;
  144.  
  145.   -enable-* | --enable-*)
  146.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  147.     # Reject names that are not valid shell variable names.
  148.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  149.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  150.     fi
  151.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  152.     case "$ac_option" in
  153.       *=*) ;;
  154.       *) ac_optarg=yes ;;
  155.     esac
  156.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  157.  
  158.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  159.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  160.   | --exec | --exe | --ex)
  161.     ac_prev=exec_prefix ;;
  162.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  163.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  164.   | --exec=* | --exe=* | --ex=*)
  165.     exec_prefix="$ac_optarg" ;;
  166.  
  167.   -gas | --gas | --ga | --g)
  168.     # Obsolete; use --with-gas.
  169.     with_gas=yes ;;
  170.  
  171.   -help | --help | --hel | --he)
  172.     # Omit some internal or obsolete options to make the list less imposing.
  173.     # This message is too long to be a string in the A/UX 3.1 sh.
  174.     cat << EOF
  175. Usage: configure [options] [host]
  176. Options: [defaults in brackets after descriptions]
  177. Configuration:
  178.   --cache-file=FILE       cache test results in FILE
  179.   --help                  print this message
  180.   --no-create             do not create output files
  181.   --quiet, --silent       do not print \`checking...' messages
  182.   --version               print the version of autoconf that created configure
  183. Directory and file names:
  184.   --prefix=PREFIX         install architecture-independent files in PREFIX
  185.                           [$ac_default_prefix]
  186.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  187.                           [same as prefix]
  188.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  189.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  190.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  191.   --datadir=DIR           read-only architecture-independent data in DIR
  192.                           [PREFIX/share]
  193.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  194.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  195.                           [PREFIX/com]
  196.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  197.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  198.   --includedir=DIR        C header files in DIR [PREFIX/include]
  199.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  200.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  201.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  202.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  203.   --program-prefix=PREFIX prepend PREFIX to installed program names
  204.   --program-suffix=SUFFIX append SUFFIX to installed program names
  205.   --program-transform-name=PROGRAM
  206.                           run sed PROGRAM on installed program names
  207. EOF
  208.     cat << EOF
  209. Host type:
  210.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  211.   --host=HOST             configure for HOST [guessed]
  212.   --target=TARGET         configure for TARGET [TARGET=HOST]
  213. Features and packages:
  214.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  215.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  216.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  217.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  218.   --x-includes=DIR        X include files are in DIR
  219.   --x-libraries=DIR       X library files are in DIR
  220. EOF
  221.     if test -n "$ac_help"; then
  222.       echo "--enable and --with options recognized:$ac_help"
  223.     fi
  224.     exit 0 ;;
  225.  
  226.   -host | --host | --hos | --ho)
  227.     ac_prev=host ;;
  228.   -host=* | --host=* | --hos=* | --ho=*)
  229.     host="$ac_optarg" ;;
  230.  
  231.   -includedir | --includedir | --includedi | --included | --include \
  232.   | --includ | --inclu | --incl | --inc)
  233.     ac_prev=includedir ;;
  234.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  235.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  236.     includedir="$ac_optarg" ;;
  237.  
  238.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  239.     ac_prev=infodir ;;
  240.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  241.     infodir="$ac_optarg" ;;
  242.  
  243.   -libdir | --libdir | --libdi | --libd)
  244.     ac_prev=libdir ;;
  245.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  246.     libdir="$ac_optarg" ;;
  247.  
  248.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  249.   | --libexe | --libex | --libe)
  250.     ac_prev=libexecdir ;;
  251.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  252.   | --libexe=* | --libex=* | --libe=*)
  253.     libexecdir="$ac_optarg" ;;
  254.  
  255.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  256.   | --localstate | --localstat | --localsta | --localst \
  257.   | --locals | --local | --loca | --loc | --lo)
  258.     ac_prev=localstatedir ;;
  259.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  260.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  261.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  262.     localstatedir="$ac_optarg" ;;
  263.  
  264.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  265.     ac_prev=mandir ;;
  266.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  267.     mandir="$ac_optarg" ;;
  268.  
  269.   -nfp | --nfp | --nf)
  270.     # Obsolete; use --without-fp.
  271.     with_fp=no ;;
  272.  
  273.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  274.   | --no-cr | --no-c)
  275.     no_create=yes ;;
  276.  
  277.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  278.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  279.     no_recursion=yes ;;
  280.  
  281.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  282.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  283.   | --oldin | --oldi | --old | --ol | --o)
  284.     ac_prev=oldincludedir ;;
  285.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  286.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  287.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  288.     oldincludedir="$ac_optarg" ;;
  289.  
  290.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  291.     ac_prev=prefix ;;
  292.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  293.     prefix="$ac_optarg" ;;
  294.  
  295.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  296.   | --program-pre | --program-pr | --program-p)
  297.     ac_prev=program_prefix ;;
  298.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  299.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  300.     program_prefix="$ac_optarg" ;;
  301.  
  302.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  303.   | --program-suf | --program-su | --program-s)
  304.     ac_prev=program_suffix ;;
  305.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  306.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  307.     program_suffix="$ac_optarg" ;;
  308.  
  309.   -program-transform-name | --program-transform-name \
  310.   | --program-transform-nam | --program-transform-na \
  311.   | --program-transform-n | --program-transform- \
  312.   | --program-transform | --program-transfor \
  313.   | --program-transfo | --program-transf \
  314.   | --program-trans | --program-tran \
  315.   | --progr-tra | --program-tr | --program-t)
  316.     ac_prev=program_transform_name ;;
  317.   -program-transform-name=* | --program-transform-name=* \
  318.   | --program-transform-nam=* | --program-transform-na=* \
  319.   | --program-transform-n=* | --program-transform-=* \
  320.   | --program-transform=* | --program-transfor=* \
  321.   | --program-transfo=* | --program-transf=* \
  322.   | --program-trans=* | --program-tran=* \
  323.   | --progr-tra=* | --program-tr=* | --program-t=*)
  324.     program_transform_name="$ac_optarg" ;;
  325.  
  326.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  327.   | -silent | --silent | --silen | --sile | --sil)
  328.     silent=yes ;;
  329.  
  330.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  331.     ac_prev=sbindir ;;
  332.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  333.   | --sbi=* | --sb=*)
  334.     sbindir="$ac_optarg" ;;
  335.  
  336.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  337.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  338.   | --sharedst | --shareds | --shared | --share | --shar \
  339.   | --sha | --sh)
  340.     ac_prev=sharedstatedir ;;
  341.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  342.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  343.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  344.   | --sha=* | --sh=*)
  345.     sharedstatedir="$ac_optarg" ;;
  346.  
  347.   -site | --site | --sit)
  348.     ac_prev=site ;;
  349.   -site=* | --site=* | --sit=*)
  350.     site="$ac_optarg" ;;
  351.  
  352.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  353.     ac_prev=srcdir ;;
  354.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  355.     srcdir="$ac_optarg" ;;
  356.  
  357.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  358.   | --syscon | --sysco | --sysc | --sys | --sy)
  359.     ac_prev=sysconfdir ;;
  360.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  361.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  362.     sysconfdir="$ac_optarg" ;;
  363.  
  364.   -target | --target | --targe | --targ | --tar | --ta | --t)
  365.     ac_prev=target ;;
  366.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  367.     target="$ac_optarg" ;;
  368.  
  369.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  370.     verbose=yes ;;
  371.  
  372.   -version | --version | --versio | --versi | --vers)
  373.     echo "configure generated by autoconf version 2.12"
  374.     exit 0 ;;
  375.  
  376.   -with-* | --with-*)
  377.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  378.     # Reject names that are not valid shell variable names.
  379.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  380.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  381.     fi
  382.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  383.     case "$ac_option" in
  384.       *=*) ;;
  385.       *) ac_optarg=yes ;;
  386.     esac
  387.     eval "with_${ac_package}='$ac_optarg'" ;;
  388.  
  389.   -without-* | --without-*)
  390.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  391.     # Reject names that are not valid shell variable names.
  392.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  393.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  394.     fi
  395.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  396.     eval "with_${ac_package}=no" ;;
  397.  
  398.   --x)
  399.     # Obsolete; use --with-x.
  400.     with_x=yes ;;
  401.  
  402.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  403.   | --x-incl | --x-inc | --x-in | --x-i)
  404.     ac_prev=x_includes ;;
  405.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  406.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  407.     x_includes="$ac_optarg" ;;
  408.  
  409.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  410.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  411.     ac_prev=x_libraries ;;
  412.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  413.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  414.     x_libraries="$ac_optarg" ;;
  415.  
  416.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  417.     ;;
  418.  
  419.   *)
  420.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  421.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  422.     fi
  423.     if test "x$nonopt" != xNONE; then
  424.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  425.     fi
  426.     nonopt="$ac_option"
  427.     ;;
  428.  
  429.   esac
  430. done
  431.  
  432. if test -n "$ac_prev"; then
  433.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  434. fi
  435.  
  436. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  437.  
  438. # File descriptor usage:
  439. # 0 standard input
  440. # 1 file creation
  441. # 2 errors and warnings
  442. # 3 some systems may open it to /dev/tty
  443. # 4 used on the Kubota Titan
  444. # 6 checking for... messages and results
  445. # 5 compiler messages saved in config.log
  446. if test "$silent" = yes; then
  447.   exec 6>/dev/null
  448. else
  449.   exec 6>&1
  450. fi
  451. exec 5>./config.log
  452.  
  453. echo "\
  454. This file contains any messages produced by compilers while
  455. running configure, to aid debugging if configure makes a mistake.
  456. " 1>&5
  457.  
  458. # Strip out --no-create and --no-recursion so they do not pile up.
  459. # Also quote any args containing shell metacharacters.
  460. ac_configure_args=
  461. for ac_arg
  462. do
  463.   case "$ac_arg" in
  464.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  465.   | --no-cr | --no-c) ;;
  466.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  467.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  468.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  469.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  470.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  471.   esac
  472. done
  473.  
  474. # NLS nuisances.
  475. # Only set these to C if already set.  These must not be set unconditionally
  476. # because not all systems understand e.g. LANG=C (notably SCO).
  477. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  478. # Non-C LC_CTYPE values break the ctype check.
  479. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  480. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  481. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  482. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  483.  
  484. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  485. rm -rf conftest* confdefs.h
  486. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  487. echo > confdefs.h
  488.  
  489. # A filename unique to this package, relative to the directory that
  490. # configure is in, which we can look for to find out if srcdir is correct.
  491. ac_unique_file=pdflib/p_basic.c
  492.  
  493. # Find the source files, if location was not specified.
  494. if test -z "$srcdir"; then
  495.   ac_srcdir_defaulted=yes
  496.   # Try the directory containing this script, then its parent.
  497.   ac_prog=$0
  498.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  499.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  500.   srcdir=$ac_confdir
  501.   if test ! -r $srcdir/$ac_unique_file; then
  502.     srcdir=..
  503.   fi
  504. else
  505.   ac_srcdir_defaulted=no
  506. fi
  507. if test ! -r $srcdir/$ac_unique_file; then
  508.   if test "$ac_srcdir_defaulted" = yes; then
  509.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  510.   else
  511.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  512.   fi
  513. fi
  514. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  515.  
  516. # Prefer explicitly selected file to automatically selected ones.
  517. if test -z "$CONFIG_SITE"; then
  518.   if test "x$prefix" != xNONE; then
  519.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  520.   else
  521.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  522.   fi
  523. fi
  524. for ac_site_file in $CONFIG_SITE; do
  525.   if test -r "$ac_site_file"; then
  526.     echo "loading site script $ac_site_file"
  527.     . "$ac_site_file"
  528.   fi
  529. done
  530.  
  531. if test -r "$cache_file"; then
  532.   echo "loading cache $cache_file"
  533.   . $cache_file
  534. else
  535.   echo "creating cache $cache_file"
  536.   > $cache_file
  537. fi
  538.  
  539. ac_ext=c
  540. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  541. ac_cpp='$CPP $CPPFLAGS'
  542. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  543. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  544. cross_compiling=$ac_cv_prog_cc_cross
  545.  
  546. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  547.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  548.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  549.     ac_n= ac_c='
  550. ' ac_t='    '
  551.   else
  552.     ac_n=-n ac_c= ac_t=
  553.   fi
  554. else
  555.   ac_n= ac_c='\c' ac_t=
  556. fi
  557.  
  558.  
  559.  
  560. VERSION="2.01"
  561.  
  562. WITH_CXX=nope
  563. WITH_JAVA=nope
  564. WITH_PERL=nope
  565. WITH_PYTHON=nope
  566. WITH_TCL=nope
  567.  
  568. ac_aux_dir=
  569. for ac_dir in util $srcdir/util; do
  570.   if test -f $ac_dir/install-sh; then
  571.     ac_aux_dir=$ac_dir
  572.     ac_install_sh="$ac_aux_dir/install-sh -c"
  573.     break
  574.   elif test -f $ac_dir/install.sh; then
  575.     ac_aux_dir=$ac_dir
  576.     ac_install_sh="$ac_aux_dir/install.sh -c"
  577.     break
  578.   fi
  579. done
  580. if test -z "$ac_aux_dir"; then
  581.   { echo "configure: error: can not find install-sh or install.sh in util $srcdir/util" 1>&2; exit 1; }
  582. fi
  583. ac_config_guess=$ac_aux_dir/config.guess
  584. ac_config_sub=$ac_aux_dir/config.sub
  585. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  586.  
  587.  
  588. # Set name for machine-dependent library files
  589.  
  590. echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
  591. echo "configure:592: checking MACHDEP" >&5
  592. if test -z "$MACHDEP"
  593. then
  594.     if test -f /usr/lib/NextStep/software_version; then
  595.         set X `hostinfo | grep 'NeXT Mach.*:' | \
  596.             sed -e 's/://' -e 's/\./_/'` && \
  597.         ac_sys_system=next && ac_sys_release=$4
  598.         MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
  599.     else
  600.         ac_sys_system=`uname -s`
  601.         if test "$ac_sys_system" = "AIX" ; then
  602.             ac_sys_release=`uname -v`
  603.         else
  604.             ac_sys_release=`uname -r`
  605.         fi
  606.         ac_md_system=`echo $ac_sys_system |
  607.                    tr -d '/ ' | tr '[A-Z]' '[a-z]'`
  608.         ac_md_release=`echo $ac_sys_release |
  609.                    tr -d '/ ' | sed 's/\..*//'`
  610.         MACHDEP="$ac_md_system$ac_md_release"
  611.     fi
  612.     case MACHDEP in
  613.     '')    MACHDEP=unknown;;
  614.     esac
  615. fi
  616. echo "$ac_t""$MACHDEP" 1>&6
  617.  
  618. # Default defines -- some systems may need special handling here
  619.  
  620. case $ac_sys_system/$ac_sys_release in
  621.     cyg*|CYG*) DEFINES="-U_WIN32 -UWIN32 -U__WIN32__ -U_Windows";;
  622.     *)    DEFINES="";;
  623. esac
  624.  
  625. # ---------- Checks for programs.
  626.  
  627. # Extract the first word of "gcc", so it can be a program name with args.
  628. set dummy gcc; ac_word=$2
  629. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  630. echo "configure:631: checking for $ac_word" >&5
  631. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  632.   echo $ac_n "(cached) $ac_c" 1>&6
  633. else
  634.   if test -n "$CC"; then
  635.   ac_cv_prog_CC="$CC" # Let the user override the test.
  636. else
  637.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  638.   for ac_dir in $PATH; do
  639.     test -z "$ac_dir" && ac_dir=.
  640.     if test -f $ac_dir/$ac_word; then
  641.       ac_cv_prog_CC="gcc"
  642.       break
  643.     fi
  644.   done
  645.   IFS="$ac_save_ifs"
  646. fi
  647. fi
  648. CC="$ac_cv_prog_CC"
  649. if test -n "$CC"; then
  650.   echo "$ac_t""$CC" 1>&6
  651. else
  652.   echo "$ac_t""no" 1>&6
  653. fi
  654.  
  655. if test -z "$CC"; then
  656.   # Extract the first word of "cc", so it can be a program name with args.
  657. set dummy cc; ac_word=$2
  658. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  659. echo "configure:660: checking for $ac_word" >&5
  660. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  661.   echo $ac_n "(cached) $ac_c" 1>&6
  662. else
  663.   if test -n "$CC"; then
  664.   ac_cv_prog_CC="$CC" # Let the user override the test.
  665. else
  666.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  667.   ac_prog_rejected=no
  668.   for ac_dir in $PATH; do
  669.     test -z "$ac_dir" && ac_dir=.
  670.     if test -f $ac_dir/$ac_word; then
  671.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  672.         ac_prog_rejected=yes
  673.     continue
  674.       fi
  675.       ac_cv_prog_CC="cc"
  676.       break
  677.     fi
  678.   done
  679.   IFS="$ac_save_ifs"
  680. if test $ac_prog_rejected = yes; then
  681.   # We found a bogon in the path, so make sure we never use it.
  682.   set dummy $ac_cv_prog_CC
  683.   shift
  684.   if test $# -gt 0; then
  685.     # We chose a different compiler from the bogus one.
  686.     # However, it has the same basename, so the bogon will be chosen
  687.     # first if we set CC to just the basename; use the full file name.
  688.     shift
  689.     set dummy "$ac_dir/$ac_word" "$@"
  690.     shift
  691.     ac_cv_prog_CC="$@"
  692.   fi
  693. fi
  694. fi
  695. fi
  696. CC="$ac_cv_prog_CC"
  697. if test -n "$CC"; then
  698.   echo "$ac_t""$CC" 1>&6
  699. else
  700.   echo "$ac_t""no" 1>&6
  701. fi
  702.  
  703.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  704. fi
  705.  
  706. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  707. echo "configure:708: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  708.  
  709. ac_ext=c
  710. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  711. ac_cpp='$CPP $CPPFLAGS'
  712. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  713. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  714. cross_compiling=$ac_cv_prog_cc_cross
  715.  
  716. cat > conftest.$ac_ext <<EOF
  717. #line 718 "configure"
  718. #include "confdefs.h"
  719. main(){return(0);}
  720. EOF
  721. if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  722.   ac_cv_prog_cc_works=yes
  723.   # If we can't run a trivial program, we are probably using a cross compiler.
  724.   if (./conftest; exit) 2>/dev/null; then
  725.     ac_cv_prog_cc_cross=no
  726.   else
  727.     ac_cv_prog_cc_cross=yes
  728.   fi
  729. else
  730.   echo "configure: failed program was:" >&5
  731.   cat conftest.$ac_ext >&5
  732.   ac_cv_prog_cc_works=no
  733. fi
  734. rm -fr conftest*
  735.  
  736. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  737. if test $ac_cv_prog_cc_works = no; then
  738.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  739. fi
  740. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  741. echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  742. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  743. cross_compiling=$ac_cv_prog_cc_cross
  744.  
  745. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  746. echo "configure:747: checking whether we are using GNU C" >&5
  747. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  748.   echo $ac_n "(cached) $ac_c" 1>&6
  749. else
  750.   cat > conftest.c <<EOF
  751. #ifdef __GNUC__
  752.   yes;
  753. #endif
  754. EOF
  755. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  756.   ac_cv_prog_gcc=yes
  757. else
  758.   ac_cv_prog_gcc=no
  759. fi
  760. fi
  761.  
  762. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  763.  
  764. if test $ac_cv_prog_gcc = yes; then
  765.   GCC=yes
  766.   ac_test_CFLAGS="${CFLAGS+set}"
  767.   ac_save_CFLAGS="$CFLAGS"
  768.   CFLAGS=
  769.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  770. echo "configure:771: checking whether ${CC-cc} accepts -g" >&5
  771. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  772.   echo $ac_n "(cached) $ac_c" 1>&6
  773. else
  774.   echo 'void f(){}' > conftest.c
  775. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  776.   ac_cv_prog_cc_g=yes
  777. else
  778.   ac_cv_prog_cc_g=no
  779. fi
  780. rm -f conftest*
  781.  
  782. fi
  783.  
  784. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  785.   if test "$ac_test_CFLAGS" = set; then
  786.     CFLAGS="$ac_save_CFLAGS"
  787.   elif test $ac_cv_prog_cc_g = yes; then
  788.     CFLAGS="-g -O2"
  789.   else
  790.     CFLAGS="-O2"
  791.   fi
  792. else
  793.   GCC=
  794.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  795. fi
  796.  
  797. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  798. echo "configure:799: checking how to run the C preprocessor" >&5
  799. # On Suns, sometimes $CPP names a directory.
  800. if test -n "$CPP" && test -d "$CPP"; then
  801.   CPP=
  802. fi
  803. if test -z "$CPP"; then
  804. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  805.   echo $ac_n "(cached) $ac_c" 1>&6
  806. else
  807.     # This must be in double quotes, not single quotes, because CPP may get
  808.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  809.   CPP="${CC-cc} -E"
  810.   # On the NeXT, cc -E runs the code through the compiler's parser,
  811.   # not just through cpp.
  812.   cat > conftest.$ac_ext <<EOF
  813. #line 814 "configure"
  814. #include "confdefs.h"
  815. #include <assert.h>
  816. Syntax Error
  817. EOF
  818. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  819. { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  820. ac_err=`grep -v '^ *+' conftest.out`
  821. if test -z "$ac_err"; then
  822.   :
  823. else
  824.   echo "$ac_err" >&5
  825.   echo "configure: failed program was:" >&5
  826.   cat conftest.$ac_ext >&5
  827.   rm -rf conftest*
  828.   CPP="${CC-cc} -E -traditional-cpp"
  829.   cat > conftest.$ac_ext <<EOF
  830. #line 831 "configure"
  831. #include "confdefs.h"
  832. #include <assert.h>
  833. Syntax Error
  834. EOF
  835. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  836. { (eval echo configure:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  837. ac_err=`grep -v '^ *+' conftest.out`
  838. if test -z "$ac_err"; then
  839.   :
  840. else
  841.   echo "$ac_err" >&5
  842.   echo "configure: failed program was:" >&5
  843.   cat conftest.$ac_ext >&5
  844.   rm -rf conftest*
  845.   CPP=/lib/cpp
  846. fi
  847. rm -f conftest*
  848. fi
  849. rm -f conftest*
  850.   ac_cv_prog_CPP="$CPP"
  851. fi
  852.   CPP="$ac_cv_prog_CPP"
  853. else
  854.   ac_cv_prog_CPP="$CPP"
  855. fi
  856. echo "$ac_t""$CPP" 1>&6
  857.  
  858. # Find a good install program.  We prefer a C program (faster),
  859. # so one script is as good as another.  But avoid the broken or
  860. # incompatible versions:
  861. # SysV /etc/install, /usr/sbin/install
  862. # SunOS /usr/etc/install
  863. # IRIX /sbin/install
  864. # AIX /bin/install
  865. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  866. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  867. # ./install, which can be erroneously created by make from ./install.sh.
  868. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  869. echo "configure:870: checking for a BSD compatible install" >&5
  870. if test -z "$INSTALL"; then
  871. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  872.   echo $ac_n "(cached) $ac_c" 1>&6
  873. else
  874.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  875.   for ac_dir in $PATH; do
  876.     # Account for people who put trailing slashes in PATH elements.
  877.     case "$ac_dir/" in
  878.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  879.     *)
  880.       # OSF1 and SCO ODT 3.0 have their own names for install.
  881.       for ac_prog in ginstall installbsd scoinst install; do
  882.         if test -f $ac_dir/$ac_prog; then
  883.       if test $ac_prog = install &&
  884.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  885.         # AIX install.  It has an incompatible calling convention.
  886.         # OSF/1 installbsd also uses dspmsg, but is usable.
  887.         :
  888.       else
  889.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  890.         break 2
  891.       fi
  892.     fi
  893.       done
  894.       ;;
  895.     esac
  896.   done
  897.   IFS="$ac_save_IFS"
  898.  
  899. fi
  900.   if test "${ac_cv_path_install+set}" = set; then
  901.     INSTALL="$ac_cv_path_install"
  902.   else
  903.     # As a last resort, use the slow shell script.  We don't cache a
  904.     # path for INSTALL within a source directory, because that will
  905.     # break other packages using the cache if that directory is
  906.     # removed, or if the path is relative.
  907.     INSTALL="$ac_install_sh"
  908.   fi
  909. fi
  910. echo "$ac_t""$INSTALL" 1>&6
  911.  
  912. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  913. # It thinks the first close brace ends the variable substitution.
  914. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  915.  
  916. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  917.  
  918. # Extract the first word of "ranlib", so it can be a program name with args.
  919. set dummy ranlib; ac_word=$2
  920. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  921. echo "configure:922: checking for $ac_word" >&5
  922. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  923.   echo $ac_n "(cached) $ac_c" 1>&6
  924. else
  925.   if test -n "$RANLIB"; then
  926.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  927. else
  928.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  929.   for ac_dir in $PATH; do
  930.     test -z "$ac_dir" && ac_dir=.
  931.     if test -f $ac_dir/$ac_word; then
  932.       ac_cv_prog_RANLIB="ranlib"
  933.       break
  934.     fi
  935.   done
  936.   IFS="$ac_save_ifs"
  937.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  938. fi
  939. fi
  940. RANLIB="$ac_cv_prog_RANLIB"
  941. if test -n "$RANLIB"; then
  942.   echo "$ac_t""$RANLIB" 1>&6
  943. else
  944.   echo "$ac_t""no" 1>&6
  945. fi
  946.  
  947.  
  948. # ---------- deselect C++ option
  949. WITH_CXX="yes"
  950. # Check whether --with-cxx or --without-cxx was given.
  951. if test "${with_cxx+set}" = set; then
  952.   withval="$with_cxx"
  953.   WITH_CXX="no"
  954. else
  955.   WITH_CXX="yes"
  956. fi
  957.  
  958.  
  959. if test "$WITH_CXX" = "yes"; then
  960.     for ac_prog in $CCC c++ g++ gcc CC cxx cc++
  961. do
  962. # Extract the first word of "$ac_prog", so it can be a program name with args.
  963. set dummy $ac_prog; ac_word=$2
  964. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  965. echo "configure:966: checking for $ac_word" >&5
  966. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  967.   echo $ac_n "(cached) $ac_c" 1>&6
  968. else
  969.   if test -n "$CXX"; then
  970.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  971. else
  972.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  973.   for ac_dir in $PATH; do
  974.     test -z "$ac_dir" && ac_dir=.
  975.     if test -f $ac_dir/$ac_word; then
  976.       ac_cv_prog_CXX="$ac_prog"
  977.       break
  978.     fi
  979.   done
  980.   IFS="$ac_save_ifs"
  981. fi
  982. fi
  983. CXX="$ac_cv_prog_CXX"
  984. if test -n "$CXX"; then
  985.   echo "$ac_t""$CXX" 1>&6
  986. else
  987.   echo "$ac_t""no" 1>&6
  988. fi
  989.  
  990. test -n "$CXX" && break
  991. done
  992. test -n "$CXX" || CXX="gcc"
  993.  
  994.  
  995. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  996. echo "configure:997: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  997.  
  998. ac_ext=C
  999. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1000. ac_cpp='$CXXCPP $CPPFLAGS'
  1001. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1002. ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1003. cross_compiling=$ac_cv_prog_cxx_cross
  1004.  
  1005. cat > conftest.$ac_ext <<EOF
  1006. #line 1007 "configure"
  1007. #include "confdefs.h"
  1008. main(){return(0);}
  1009. EOF
  1010. if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1011.   ac_cv_prog_cxx_works=yes
  1012.   # If we can't run a trivial program, we are probably using a cross compiler.
  1013.   if (./conftest; exit) 2>/dev/null; then
  1014.     ac_cv_prog_cxx_cross=no
  1015.   else
  1016.     ac_cv_prog_cxx_cross=yes
  1017.   fi
  1018. else
  1019.   echo "configure: failed program was:" >&5
  1020.   cat conftest.$ac_ext >&5
  1021.   ac_cv_prog_cxx_works=no
  1022. fi
  1023. rm -fr conftest*
  1024. ac_ext=c
  1025. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1026. ac_cpp='$CPP $CPPFLAGS'
  1027. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1028. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1029. cross_compiling=$ac_cv_prog_cc_cross
  1030.  
  1031. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1032. if test $ac_cv_prog_cxx_works = no; then
  1033.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1034. fi
  1035. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1036. echo "configure:1037: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1037. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1038. cross_compiling=$ac_cv_prog_cxx_cross
  1039.  
  1040. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1041. echo "configure:1042: checking whether we are using GNU C++" >&5
  1042. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1043.   echo $ac_n "(cached) $ac_c" 1>&6
  1044. else
  1045.   cat > conftest.C <<EOF
  1046. #ifdef __GNUC__
  1047.   yes;
  1048. #endif
  1049. EOF
  1050. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1051.   ac_cv_prog_gxx=yes
  1052. else
  1053.   ac_cv_prog_gxx=no
  1054. fi
  1055. fi
  1056.  
  1057. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1058.  
  1059. if test $ac_cv_prog_gxx = yes; then
  1060.   GXX=yes
  1061.   ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1062.   ac_save_CXXFLAGS="$CXXFLAGS"
  1063.   CXXFLAGS=
  1064.   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1065. echo "configure:1066: checking whether ${CXX-g++} accepts -g" >&5
  1066. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1067.   echo $ac_n "(cached) $ac_c" 1>&6
  1068. else
  1069.   echo 'void f(){}' > conftest.cc
  1070. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1071.   ac_cv_prog_cxx_g=yes
  1072. else
  1073.   ac_cv_prog_cxx_g=no
  1074. fi
  1075. rm -f conftest*
  1076.  
  1077. fi
  1078.  
  1079. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1080.   if test "$ac_test_CXXFLAGS" = set; then
  1081.     CXXFLAGS="$ac_save_CXXFLAGS"
  1082.   elif test $ac_cv_prog_cxx_g = yes; then
  1083.     CXXFLAGS="-g -O2"
  1084.   else
  1085.     CXXFLAGS="-O2"
  1086.   fi
  1087. else
  1088.   GXX=
  1089.   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  1090. fi
  1091.  
  1092.     
  1093. fi
  1094.  
  1095. # common stuff, unlikely to be changed
  1096. SHELL="/bin/sh"
  1097.  
  1098. # EXE must include the dot if used
  1099. case $ac_sys_system/$ac_sys_release in
  1100.     cyg*|CYG*) EXE=".exe";;
  1101.     *)    EXE="";;
  1102. esac
  1103.  
  1104. # OBJ must _not_ include the dot
  1105. OBJ="o"
  1106. AR="ar rc"
  1107. RM="rm -f"
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117. # ---------- Checks for libraries.
  1118.  
  1119. # This borrowed from the Python configuration file
  1120. # Set info about shared libraries.
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127. # SO is the extension of shared libraries `(including the dot!)
  1128. # -- usually .so, .sl on HP-UX
  1129.  
  1130. echo $ac_n "checking SO""... $ac_c" 1>&6
  1131. echo "configure:1132: checking SO" >&5
  1132. if test -z "$SO"
  1133. then
  1134.     case $ac_sys_system/$ac_sys_release in
  1135.     hp*|HP*) SO=.sl;;
  1136.     NeXT/3*|next/3*) SO=.a;; # no shared libs on NeXT 3.3 and less
  1137.     cyg*|CYG*) SO=.dll;;
  1138.     *)    SO=.so;;
  1139.     esac
  1140. fi
  1141. echo "$ac_t""$SO" 1>&6
  1142. # LDSHARED is the ld *command* used to create shared library
  1143. # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
  1144. echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
  1145. echo "configure:1146: checking LDSHARED" >&5
  1146. if test -z "$LDSHARED"
  1147. then
  1148.     case $ac_sys_system/$ac_sys_release in
  1149.     AIX*) LDSHARED="ld_so_aix";;
  1150.     IRIX*) LDSHARED="ld -shared";;
  1151.     SunOS/4*) LDSHARED="ld";;
  1152.     SunOS/5*) LDSHARED="ld -G";;
  1153.     hp*|HP*) LDSHARED="ld -b";;
  1154.     OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
  1155.     DYNIX/ptx*) LDSHARED="ld -G";;
  1156.     Linux*) LDSHARED="gcc -shared";;
  1157.     FreeBSD*) LDSHARED="ld -Bshareable";;
  1158.     NetBSD*) LDSHARED="ld -Bshareable -Bdynamic -x";;
  1159.     NeXT|next/3*) LDSHARED="ld -u libsys_s";;
  1160.     NeXT|next/4*) LDSHARED="cc -nostdlib -r ";;
  1161.     SCO_SV*) LDSHARED="ld -G";;
  1162.     cyg*|CYG*) LDSHARED="dllwrap --export-all --driver-name gcc --output-def libpdf$VERSION.def --implib libpdf$VERSION.a ";;
  1163.     *)    LDSHARED="ld";;
  1164.     esac
  1165. fi
  1166. echo "$ac_t""$LDSHARED" 1>&6
  1167.  
  1168. # CCSHARED are the C *flags* used to create objects to go into a shared
  1169. # library -- this is only needed for a few systems
  1170. echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
  1171. echo "configure:1172: checking CCSHARED" >&5
  1172. if test -z "$CCSHARED"
  1173. then
  1174.     case $ac_sys_system in
  1175.     hp*|HP*) if test "$GCC" = yes;
  1176.          then CCSHARED="-fpic";
  1177.          else CCSHARED="+z";
  1178.          fi;;
  1179.     Linux*) CCSHARED="-fpic";;
  1180.     SCO_SV*) CCSHARED="-Kpic -belf";;
  1181.     FreeBSD*) CCSHARED="-fpic";;
  1182.     NetBSD*) CCSHARED="-fpic";;
  1183.     cyg*|CYG*) CCSHARED="-DBUILDING_DLL=1";;
  1184.     esac
  1185. fi
  1186. echo "$ac_t""$CCSHARED" 1>&6
  1187.  
  1188. # ---------- select debugging configuration
  1189. WITH_DEBUG="no"
  1190. # Check whether --with-debug or --without-debug was given.
  1191. if test "${with_debug+set}" = set; then
  1192.   withval="$with_debug"
  1193.   WITH_DEBUG="yes"
  1194. else
  1195.   WITH_DEBUG="no"
  1196. fi
  1197.  
  1198.  
  1199. # ---------- select static library (shared is default for most systems)
  1200. # Filter systems which don't support shared libraries
  1201. case $ac_sys_system/$ac_sys_release in
  1202.     NeXT|next/3*) WITH_STATIC="no";;
  1203.     *)    WITH_STATIC="yes";;
  1204. esac
  1205.  
  1206. # Check whether --with-static or --without-static was given.
  1207. if test "${with_static+set}" = set; then
  1208.   withval="$with_static"
  1209.   WITH_STATIC="yes"
  1210. else
  1211.   WITH_STATIC="no"
  1212. fi
  1213.  
  1214.  
  1215. # LINKFORSHARED are the flags passed to the $(CC) command that links
  1216. # the executables -- this is only needed for a few systems
  1217.  
  1218. echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
  1219. echo "configure:1220: checking LINKFORSHARED" >&5
  1220. if test -z "$LINKFORSHARED"
  1221. then
  1222.     case $ac_sys_system/$ac_sys_release in
  1223.     AIX*)    LINKFORSHARED='-Wl,-bE:$(srcdir)/python.exp -lld';;
  1224.     hp*|HP*)
  1225.         LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
  1226.     Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
  1227.     next/3*) LINKFORSHARED="-u libsys_s";;
  1228.     SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
  1229.     IRIX*/6*) LINKFORSHARED="-all";;
  1230.     esac
  1231. fi
  1232. echo "$ac_t""$LINKFORSHARED" 1>&6
  1233.  
  1234. # ---------- Checks for header files.
  1235.  
  1236. # The following tests for Tcl, Python, and Perl are taken from
  1237. # the SWIG configure.in file, which in turns borrows some tests
  1238. # from the Python configuration.
  1239.  
  1240. echo ""
  1241. echo "Checking for installed languages."
  1242. echo "Note: none of the following packages are required to build PDFlib"
  1243. echo ""
  1244.  
  1245. #--------------------------------------------------------------------
  1246. #    Take care of C++
  1247. #--------------------------------------------------------------------
  1248.  
  1249. # Filter out systems where we don't build the C++ binding
  1250. # Quote Detlev Droege: "C++ doesn't work with a real object-oriented
  1251. # system such as NeXTStep"
  1252.  
  1253. case $ac_sys_system/$ac_sys_release in
  1254.     NeXT|next/3*) WITH_CXX="no";;
  1255.     NeXT|next/4*) WITH_CXX="no";;
  1256.     *)    WITH_CXX="yes";;
  1257. esac
  1258.  
  1259. #--------------------------------------------------------------------
  1260. #    Try to locate the Java Developers Kit for JNI
  1261. #--------------------------------------------------------------------
  1262.  
  1263. JAVAINCLUDE=nope
  1264.  
  1265. # Check whether --with-java or --without-java was given.
  1266. if test "${with_java+set}" = set; then
  1267.   withval="$with_java"
  1268.   
  1269.     JAVAPACKAGE="$withval"
  1270. else
  1271.   JAVAPACKAGE=nope
  1272. fi
  1273.  
  1274.  
  1275. if test "$JAVAINCLUDE" = nope; then
  1276.    if test "$JAVAPACKAGE" != nope; then
  1277.     JAVAINCLUDE="-I$JAVAPACKAGE/include"
  1278.    fi
  1279. fi
  1280.  
  1281. echo $ac_n "checking for Java header files""... $ac_c" 1>&6
  1282. echo "configure:1283: checking for Java header files" >&5
  1283. if test "$JAVAINCLUDE" = nope; then
  1284. cat > conftest.$ac_ext <<EOF
  1285. #line 1286 "configure"
  1286. #include "confdefs.h"
  1287. #include <jni.h>
  1288. EOF
  1289. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1290. { (eval echo configure:1291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1291. ac_err=`grep -v '^ *+' conftest.out`
  1292. if test -z "$ac_err"; then
  1293.   :
  1294. else
  1295.   echo "$ac_err" >&5
  1296.   echo "configure: failed program was:" >&5
  1297.   cat conftest.$ac_ext >&5
  1298.   rm -rf conftest*
  1299.   JAVAINCLUDE="nope"
  1300. fi
  1301. rm -f conftest*
  1302. if test "$JAVAINCLUDE" = nope; then
  1303.     dirs="$prefix /usr/lib/java /usr/java /usr/local/java /usr/lib/jdk1.2.1 /usr/lib/jdk1.1.8 /usr/lib/jdk1.1.7 /usr/lib/jdk1.1.6 /usr/lib/jdk1.1.5 /usr/lib/jdk1.1.4 /usr/lib/jdk1.1.3 /usr/local/jdk1.1.2 /usr/local/jdk1.1.1 /usr /opt/local"
  1304.     for i in $dirs ; do
  1305.         if test -r $i/include/jni.h; then
  1306.             echo "$ac_t""$i/include" 1>&6
  1307.             JAVAINCLUDE="-I$i/include"
  1308.             break
  1309.         fi
  1310.     done
  1311. fi
  1312. if test "$JAVAINCLUDE" = nope; then
  1313.     JAVAINCLUDE="-I/usr/local/include"
  1314.         echo "$ac_t""not found" 1>&6
  1315. else
  1316.     WITH_JAVA="yes"
  1317.     if test -r $JAVAINCLUDE/$MACHDEP/jni_md.h; then
  1318.         JAVAINCLUDE="$JAVAINCLUDE $JAVAINCLUDE/$MACHDEP"
  1319.     else
  1320.         JAVAINCLUDE="$JAVAINCLUDE $JAVAINCLUDE/genunix"
  1321.     fi
  1322. fi
  1323. else
  1324.         echo "$ac_t""$JAVAINCLUDE" 1>&6
  1325. fi
  1326.  
  1327.  
  1328.  
  1329. #--------------------------------------------------------------------
  1330. #    Try to locate the Tcl package
  1331. #--------------------------------------------------------------------
  1332.  
  1333. TCLINCLUDE=nope
  1334. TCLPACKAGEDIR=nope
  1335. TCLBIN=nope
  1336.  
  1337. # Check whether --with-tcl or --without-tcl was given.
  1338. if test "${with_tcl+set}" = set; then
  1339.   withval="$with_tcl"
  1340.   TCLBIN="$withval"
  1341. else
  1342.   TCLBIN=nope
  1343. fi
  1344.  
  1345.  
  1346. # Check whether --with-tclpkg or --without-tclpkg was given.
  1347. if test "${with_tclpkg+set}" = set; then
  1348.   withval="$with_tclpkg"
  1349.   TCLPACKAGEDIR="$withval"
  1350. else
  1351.   TCLPACKAGEDIR=nope
  1352. fi
  1353.  
  1354.  
  1355. # Check whether --with-tclincl or --without-tclincl was given.
  1356. if test "${with_tclincl+set}" = set; then
  1357.   withval="$with_tclincl"
  1358.   TCLINCLUDE="-I$withval"
  1359. else
  1360.   TCLINCLUDE=nope
  1361. fi
  1362.  
  1363.  
  1364. echo $ac_n "checking for Tcl header files""... $ac_c" 1>&6
  1365. echo "configure:1366: checking for Tcl header files" >&5
  1366. if test "$TCLINCLUDE" = nope; then
  1367. cat > conftest.$ac_ext <<EOF
  1368. #line 1369 "configure"
  1369. #include "confdefs.h"
  1370. #include <tcl.h>
  1371. EOF
  1372. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1373. { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1374. ac_err=`grep -v '^ *+' conftest.out`
  1375. if test -z "$ac_err"; then
  1376.   :
  1377. else
  1378.   echo "$ac_err" >&5
  1379.   echo "configure: failed program was:" >&5
  1380.   cat conftest.$ac_ext >&5
  1381.   rm -rf conftest*
  1382.   TCLINCLUDE="nope"
  1383. fi
  1384. rm -f conftest*
  1385. if test "$TCLINCLUDE" = nope; then
  1386.     dirs="$prefix/include /usr/local/include /usr/include /opt/local/include /home/sci/local/include /usr/pkg/include"
  1387.     for i in $dirs ; do
  1388.         if test -r $i/tcl.h; then
  1389.             echo "$ac_t""$i" 1>&6
  1390.             TCLINCLUDE="-I$i"
  1391.             break
  1392.         fi
  1393.     done
  1394. fi
  1395. if test "$TCLINCLUDE" = nope; then
  1396.     TCLINCLUDE="-I/usr/local/include"
  1397.         echo "$ac_t""not found" 1>&6
  1398. else
  1399.     WITH_TCL="yes"
  1400. fi
  1401. else
  1402.         echo "$ac_t""$TCLINCLUDE" 1>&6
  1403. fi
  1404.  
  1405. if test "$TCLPACKAGEDIR" = nope; then
  1406.     # Package support started in tcl 7.5
  1407.     if test "$TCLBIN" = nope; then
  1408.     for ac_prog in tclsh8.1 tclsh8.0 tclsh7.6 tclsh7.5 tclsh
  1409. do
  1410. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1411. set dummy $ac_prog; ac_word=$2
  1412. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1413. echo "configure:1414: checking for $ac_word" >&5
  1414. if eval "test \"`echo '$''{'ac_cv_prog_TCL'+set}'`\" = set"; then
  1415.   echo $ac_n "(cached) $ac_c" 1>&6
  1416. else
  1417.   if test -n "$TCL"; then
  1418.   ac_cv_prog_TCL="$TCL" # Let the user override the test.
  1419. else
  1420.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1421.   for ac_dir in $PATH; do
  1422.     test -z "$ac_dir" && ac_dir=.
  1423.     if test -f $ac_dir/$ac_word; then
  1424.       ac_cv_prog_TCL="$ac_prog"
  1425.       break
  1426.     fi
  1427.   done
  1428.   IFS="$ac_save_ifs"
  1429. fi
  1430. fi
  1431. TCL="$ac_cv_prog_TCL"
  1432. if test -n "$TCL"; then
  1433.   echo "$ac_t""$TCL" 1>&6
  1434. else
  1435.   echo "$ac_t""no" 1>&6
  1436. fi
  1437.  
  1438. test -n "$TCL" && break
  1439. done
  1440. test -n "$TCL" || TCL="nope"
  1441.  
  1442.     TCLBIN=$TCL
  1443.     fi
  1444.  
  1445.     
  1446.     if test "$TCLBIN" != nope; then
  1447.     # Check the installed Tcl version -- must be 7.5 or higher
  1448.     TCLVERSION=`echo "puts [info tclversion]" | $TCLBIN`
  1449.     if test "$TCLVERSION" = "7.4" -o "$TCLVERSION" = "7.3" -o "$TCLVERSION" = "7.2" -o "$TCLVERSION" = "7.1" -o "$TCLVERSION" = "7.0"; then
  1450.         echo "-------- This Tcl version doesn't support loadable packages." 
  1451.         echo "-------- PDFlib support for Tcl will not be built."
  1452.         WITH_TCL=nope
  1453.     else
  1454.     
  1455.         # Let tcl decide where to install the package
  1456.         TCLPACKAGEDIR=`(echo "puts \\$auto_path" | $TCLBIN | awk '{print $1}') 2>/dev/null`
  1457.     fi
  1458.     fi
  1459.     if test "$WITH_TCL" != nope; then
  1460.     if test "$TCLPACKAGEDIR" = nope -o -z "$TCLPACKAGEDIR" -o ! -d "$TCLPACKAGEDIR"; then
  1461.         echo "$ac_t""unable to determine Tcl package directory" 1>&6
  1462.         TCLPACKAGEDIR=/usr/lib/tcl
  1463.     fi
  1464.     fi
  1465. fi
  1466.  
  1467. TCLPACKAGEDIR=$TCLPACKAGEDIR/pdflib
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473. #----------------------------------------------------------------
  1474. # Look for Python
  1475. #----------------------------------------------------------------
  1476.  
  1477. PYINCLUDE=nope
  1478. PYPACKAGE=nope
  1479.  
  1480. # Check whether --with-py or --without-py was given.
  1481. if test "${with_py+set}" = set; then
  1482.   withval="$with_py"
  1483.   
  1484.     PYPACKAGE="$withval"
  1485. else
  1486.   PYPACKAGE=nope
  1487. fi
  1488.  
  1489. # Check whether --with-pyincl or --without-pyincl was given.
  1490. if test "${with_pyincl+set}" = set; then
  1491.   withval="$with_pyincl"
  1492.   
  1493.     PYINCLUDE="$withval"
  1494. else
  1495.   PYINCLUDE=nope
  1496. fi
  1497.  
  1498.  
  1499. if test "$PYINCLUDE" = nope; then
  1500.    if test "$PYPACKAGE" != nope; then
  1501.     PYINCLUDE="$PYPACKAGE/include"
  1502.    fi
  1503. fi
  1504.  
  1505. echo $ac_n "checking for Python header files""... $ac_c" 1>&6
  1506. echo "configure:1507: checking for Python header files" >&5
  1507.  
  1508. dirs="$PYINCLUDE $PYINCLUDE/python1.5 $PYINCLUDE/python1.4 $PYINCLUDE/Py $prefix/include/python1.5 $prefix/include/python1.4 /usr/local/include/python1.5 /usr/include/python1.5 /usr/local/include/python1.4 /usr/include/python1.4 $prefix/include/Py /usr/local/include/Py /usr/include/Py /usr/pkg/include"
  1509. for i in $dirs ; do
  1510.     if test -r $i/Python.h; then
  1511.         echo "$ac_t""$i" 1>&6
  1512.         PYINCLUDE="-I$i"
  1513.         break
  1514.     fi
  1515. done
  1516. if test "$PYINCLUDE" = nope; then
  1517.     PYINCLUDE="-I/usr/local/include/Py"
  1518.         echo "$ac_t""not found" 1>&6
  1519. else
  1520.     WITH_PYTHON=yes
  1521. fi
  1522.  
  1523.  
  1524.  
  1525. #----------------------------------------------------------------
  1526. # Look for Perl5
  1527. #----------------------------------------------------------------
  1528.  
  1529. PERLBIN=nope
  1530. PERLINCLUDE=nope
  1531.  
  1532. # Check whether --with-perl5 or --without-perl5 was given.
  1533. if test "${with_perl5+set}" = set; then
  1534.   withval="$with_perl5"
  1535.   PERLBIN="$withval"
  1536. else
  1537.   PERLBIN=nope
  1538. fi
  1539.  
  1540. # Check whether --with-perlincl or --without-perlincl was given.
  1541. if test "${with_perlincl+set}" = set; then
  1542.   withval="$with_perlincl"
  1543.   PERLINCLUDE="-I$withval"
  1544. else
  1545.   PERLINCLUDE=nope
  1546. fi
  1547.  
  1548.  
  1549. # First figure out what the name of Perl5 is
  1550.  
  1551. if test "$PERLBIN" = nope; then
  1552. for ac_prog in perl perl5.005 perl5.004 perl5.003 perl5.002 perl5.001 perl5
  1553. do
  1554. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1555. set dummy $ac_prog; ac_word=$2
  1556. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1557. echo "configure:1558: checking for $ac_word" >&5
  1558. if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
  1559.   echo $ac_n "(cached) $ac_c" 1>&6
  1560. else
  1561.   if test -n "$PERL"; then
  1562.   ac_cv_prog_PERL="$PERL" # Let the user override the test.
  1563. else
  1564.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1565.   for ac_dir in $PATH; do
  1566.     test -z "$ac_dir" && ac_dir=.
  1567.     if test -f $ac_dir/$ac_word; then
  1568.       ac_cv_prog_PERL="$ac_prog"
  1569.       break
  1570.     fi
  1571.   done
  1572.   IFS="$ac_save_ifs"
  1573. fi
  1574. fi
  1575. PERL="$ac_cv_prog_PERL"
  1576. if test -n "$PERL"; then
  1577.   echo "$ac_t""$PERL" 1>&6
  1578. else
  1579.   echo "$ac_t""no" 1>&6
  1580. fi
  1581.  
  1582. test -n "$PERL" && break
  1583. done
  1584. test -n "$PERL" || PERL="nope"
  1585.  
  1586. else
  1587. PERL="$PERLBIN"
  1588. fi
  1589. echo $ac_n "checking for Perl5 files""... $ac_c" 1>&6
  1590. echo "configure:1591: checking for Perl5 files" >&5
  1591. if test "$PERL" != nope; then
  1592.     PERL5DIR=`($PERL -e 'use Config; print $Config{archlib};') 2>/dev/null`
  1593.     if test "$PERL5DIR" != ""; then
  1594.         if test "$PERLINCLUDE" = nope; then
  1595.             dirs="$PERL5DIR $PERL5DIR/CORE"
  1596.             for i in $dirs; do
  1597.                 if test -r $i/perl.h; then
  1598.                     echo "$ac_t""$i" 1>&6
  1599.                     PERLINCLUDE="-I$i"
  1600.                     break;
  1601.                 fi
  1602.             done    
  1603.         else
  1604.             echo "$ac_t""$PERLINCLUDE" 1>&6
  1605.         fi
  1606.         if test "$PERLINCLUDE" = nope; then
  1607.             PERLINCLUDE="-I$PERL5DIR/CORE"
  1608.             echo "$ac_t""could not locate perl.h...using $PERLINCLUDE" 1>&6
  1609.         else
  1610.             WITH_PERL=yes
  1611.         fi    
  1612.     else
  1613.         echo "$ac_t""unable to determine perl5 configuration" 1>&6
  1614.         PERLINCLUDE="-I$PERL5DIR"
  1615.     fi
  1616.     PERLLIBDIR=`($PERL -e 'use Config; print $Config{sitearchexp};') 2>/dev/null`
  1617.     if test -z "$PERLLIBDIR" -o ! -d "$PERLLIBDIR"; then
  1618.         echo "$ac_t""unable to determine perl5 shared library directory" 1>&6
  1619.         PERLIB="/usr/lib/perl5/site_perl/5.005/archname"
  1620.     fi
  1621.     PERLMODDIR=`($PERL -e 'use Config; print $Config{sitelib};') 2>/dev/null`
  1622.     if test -z "$PERLMODDIR" -o ! -d "$PERLMODDIR"; then
  1623.         echo "$ac_t""unable to determine perl5 module directory" 1>&6
  1624.         PERLMODDIR="/usr/lib/perl5/site_perl/5.005"
  1625.     fi
  1626.     else
  1627.            echo "$ac_t""could not figure out how to run perl5" 1>&6
  1628.     PERLINCLUDE="-I/usr/local/lib/perl/archname/5.005/CORE"
  1629.     fi
  1630.  
  1631. # The Perl include files contain special handling for the bool type
  1632. # on NeXT (sigh). We'll run into trouble if we don't work around this.
  1633.  
  1634. case $ac_sys_system in
  1635.     NeXT|next) PERLBOOLDEF="";;
  1636.     *)    PERLBOOLDEF="-Dbool=char -DHAS_BOOL";;
  1637. esac
  1638.  
  1639. # Cygwin seems to ask for linking the perl library directly.
  1640. # We use $PERLINCLUDE for this since it both contains the Perl library
  1641. # _and_ the include files. Other systems don't explicitly link the
  1642. # Perl library, so we keep PERLLINK empty.
  1643.  
  1644. case $ac_sys_system/$ac_sys_release in
  1645.     cyg*|CYG*) PERLLINK="-L$PERLINCLUDE -lperl";;
  1646.     *)    PERLLINK="";;
  1647. esac
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655. #----------------------------------------------------------------
  1656. # Look for TIFFlib
  1657. #----------------------------------------------------------------
  1658. TIFFINC=nope
  1659. TIFFLIB=nope
  1660. TIFFLINK=nope
  1661. TIFF=nope
  1662.  
  1663. # Check whether --with-tiff or --without-tiff was given.
  1664. if test "${with_tiff+set}" = set; then
  1665.   withval="$with_tiff"
  1666.   TIFF="$withval"
  1667. else
  1668.   TIFF=nope
  1669. fi
  1670.  
  1671. # Check whether --with-tiffincl or --without-tiffincl was given.
  1672. if test "${with_tiffincl+set}" = set; then
  1673.   withval="$with_tiffincl"
  1674.   TIFFINC="$withval"
  1675. else
  1676.   TIFFINC=nope
  1677. fi
  1678.  
  1679. # Check whether --with-tifflib or --without-tifflib was given.
  1680. if test "${with_tifflib+set}" = set; then
  1681.   withval="$with_tifflib"
  1682.   TIFFLIB="$withval"
  1683. else
  1684.   TIFFLIB=nope
  1685. fi
  1686.  
  1687.  
  1688. echo $ac_n "checking for TIFF header files""... $ac_c" 1>&6
  1689. echo "configure:1690: checking for TIFF header files" >&5
  1690.  
  1691. dirs="$TIFFINC $TIFF/include /usr/include $prefix/tiff/include $prefix/tiff34/include /usr/local/include/tiff34 /usr/local/include/tiff /usr/include/tiff34 /usr/include/tiff /opt/tiff/include /opt/tiff34/include /usr/local/include /opt/include /opt/include/tiff /opt/include/tiff34 /usr/pkg/include"
  1692. for i in $dirs ; do
  1693.     if test -r $i/tiff.h; then
  1694.         echo "$ac_t""$i" 1>&6
  1695.         TIFFINC="-I$i"
  1696.         break
  1697.     fi
  1698. done
  1699. if test "$TIFFINC" = nope; then
  1700.     TIFFINC=""
  1701.         echo "$ac_t""not found" 1>&6
  1702. fi
  1703.  
  1704. echo $ac_n "checking for TIFF library""... $ac_c" 1>&6
  1705. echo "configure:1706: checking for TIFF library" >&5
  1706. dirs="$TIFFLIB $TIFFLIB/lib /usr/lib $prefix/tiff/lib $prefix/tiff34/lib /usr/local/lib/tiff34 /usr/local/lib/tiff /usr/lib/tiff /usr/lib/tiff34 /opt/tiff/lib /opt/tiff34/lib /usr/local/lib /opt/lib /opt/lib/tiff /opt/lib/tiff34 /usr/pkg/lib"
  1707.  
  1708. for i in $dirs ; do
  1709.     if test -r $i/libtiff.so; then
  1710.         echo "$ac_t""$i" 1>&6
  1711.         TIFFLIB="$i"
  1712.         TIFFLINK="-L$i -ltiff"
  1713.         DEFINES="$DEFINES -DHAVE_LIBTIFF"
  1714.         break
  1715.     elif test -r $i/libtiff34.so; then
  1716.         echo "$ac_t""$i" 1>&6
  1717.         TIFFLIB="$i"
  1718.         TIFFLINK="-L$i -ltiff34"
  1719.         DEFINES="$DEFINES -DHAVE_LIBTIFF"
  1720.         break
  1721.     elif test -r $i/libtiff.a; then
  1722.         echo "$ac_t""$i" 1>&6
  1723.         TIFFLIB="$i"
  1724.         TIFFLINK="-L$i -ltiff"
  1725.         DEFINES="$DEFINES -DHAVE_LIBTIFF"
  1726.         break
  1727.     elif test -r $i/libtiff34.a; then
  1728.         echo "$ac_t""$i" 1>&6
  1729.         TIFFLIB="$i"
  1730.         TIFFLINK="-L$i -ltiff34"
  1731.         DEFINES="$DEFINES -DHAVE_LIBTIFF"
  1732.         break
  1733.     fi
  1734. done
  1735. if test "$TIFFLIB" = nope; then
  1736.     echo "$ac_t""not found" 1>&6
  1737.     TIFFLIB=""
  1738.     TIFFINC=""
  1739. fi
  1740.  
  1741.  
  1742.  
  1743.  
  1744. #----------------------------------------------------------------
  1745. # Look for JPEG library -- needed for TIFFlib only
  1746. #----------------------------------------------------------------
  1747.  
  1748. JPEGLIB=nope
  1749. JPEGLINK=nope
  1750. JPEG=nope
  1751.  
  1752. # Check whether --with-jpeg or --without-jpeg was given.
  1753. if test "${with_jpeg+set}" = set; then
  1754.   withval="$with_jpeg"
  1755.   JPEG="$withval"
  1756. else
  1757.   JPEG=nope
  1758. fi
  1759.  
  1760. # Check whether --with-jpeglib or --without-jpeglib was given.
  1761. if test "${with_jpeglib+set}" = set; then
  1762.   withval="$with_jpeglib"
  1763.   JPEGLIB="$withval"
  1764. else
  1765.   JPEGLIB=nope
  1766. fi
  1767.  
  1768.  
  1769. echo $ac_n "checking for JPEG library""... $ac_c" 1>&6
  1770. echo "configure:1771: checking for JPEG library" >&5
  1771. dirs="$JPEGLIB $JPEGLIB/lib /usr/lib $prefix/jpeg/lib /usr/local/lib/jpeg /usr/lib/jpeg /opt/jpeg/lib /usr/local/lib /opt/lib /opt/lib/jpeg /usr/pkg/lib"
  1772.  
  1773. for i in $dirs ; do
  1774.     if test -r $i/libjpeg.so; then
  1775.         echo "$ac_t""$i" 1>&6
  1776.         JPEGLINK="-L$i -ljpeg"
  1777.         break
  1778.     elif test -r $i/libjpeg.a; then
  1779.         echo "$ac_t""$i" 1>&6
  1780.         JPEGLINK="-L$i -ljpeg"
  1781.         break
  1782.     fi
  1783. done
  1784.  
  1785. if test "$JPEGLINK" = nope; then
  1786.     echo "$ac_t""not found" 1>&6
  1787.     JPEGLINK=""
  1788. fi
  1789.  
  1790. # We don't use the JPEG library directly but only need it for TIFFlib
  1791. if test "$TIFFLINK" != "nope"; then
  1792.     TIFFLINK="$TIFFLINK $JPEGLINK"
  1793. fi
  1794.  
  1795. #----------------------------------------------------------------
  1796. # Look for zlib
  1797. #----------------------------------------------------------------
  1798.  
  1799. ZLIBINC=nope
  1800. ZLIBLIB=nope
  1801. ZLIBLINK=nope
  1802. # Check whether --with-zlib or --without-zlib was given.
  1803. if test "${with_zlib+set}" = set; then
  1804.   withval="$with_zlib"
  1805.   
  1806.     ZLIB="$withval"
  1807. else
  1808.   ZLIB=nope
  1809. fi
  1810.  
  1811. # Check whether --with-zlibincl or --without-zlibincl was given.
  1812. if test "${with_zlibincl+set}" = set; then
  1813.   withval="$with_zlibincl"
  1814.   
  1815.     ZLIBINC="$withval"
  1816. else
  1817.   ZLIBINC=nope
  1818. fi
  1819.  
  1820. # Check whether --with-zliblib or --without-zliblib was given.
  1821. if test "${with_zliblib+set}" = set; then
  1822.   withval="$with_zliblib"
  1823.   
  1824.     ZLIBLIB="$withval"
  1825. else
  1826.   ZLIBLIB=nope
  1827. fi
  1828.  
  1829.  
  1830. echo $ac_n "checking for ZLIB header files""... $ac_c" 1>&6
  1831. echo "configure:1832: checking for ZLIB header files" >&5
  1832.  
  1833. dirs="$ZLIBINC $ZLIB/include $prefix/zlib/include /usr/local/include/zlib /usr/include/zlib /opt/zlib/include /usr/local/include /opt/include /opt/include/zlib /usr/include"
  1834. for i in $dirs ; do
  1835.     if test -r $i/zlib.h; then
  1836.         echo "$ac_t""$i" 1>&6
  1837.         ZLIBINC="-I$i"
  1838.         break
  1839.     fi
  1840. done
  1841. if test "$ZLIBINC" = nope; then
  1842.     ZLIBINC="-I/usr/local/include/zlib"
  1843.         echo "$ac_t""not found" 1>&6
  1844. fi
  1845.  
  1846. echo $ac_n "checking for ZLIB library""... $ac_c" 1>&6
  1847. echo "configure:1848: checking for ZLIB library" >&5
  1848. dirs="$ZLIBLIB $ZLIBLIB/lib /usr/lib $prefix/zlib/lib /usr/local/lib/zlib /usr/lib/zlib /opt/zlib/lib /usr/local/lib /opt/lib /opt/lib/zlib"
  1849.  
  1850. for i in $dirs ; do
  1851.     if test -r $i/libz.so; then
  1852.         echo "$ac_t""$i" 1>&6
  1853.         ZLIBLIB="$i"
  1854.         ZLIBLINK="-L$i -lz"
  1855.         DEFINES="$DEFINES -DHAVE_LIBZ"
  1856.         break
  1857.     elif test -r $i/libgz.so; then
  1858.         echo "$ac_t""$i" 1>&6
  1859.         ZLIBLIB="$i"
  1860.         ZLIBLINK="-L$i -lgz"
  1861.         DEFINES="$DEFINES -DHAVE_LIBZ"
  1862.         break
  1863.     elif test -r $i/libz.a; then
  1864.         echo "$ac_t""$i" 1>&6
  1865.         ZLIBLIB="$i"
  1866.         ZLIBLINK="-L$i -lz"
  1867.         DEFINES="$DEFINES -DHAVE_LIBZ"
  1868.         break
  1869.     elif test -r $i/libgz.a; then
  1870.         echo "$ac_t""$i" 1>&6
  1871.         ZLIBLIB="$i"
  1872.         ZLIBLINK="-L$i -lgz"
  1873.         DEFINES="$DEFINES -DHAVE_LIBZ"
  1874.         break
  1875.     fi
  1876. done
  1877. if test "$ZLIBLIB" = nope; then
  1878.     echo "$ac_t""not found" 1>&6
  1879.     ZLIBLIB="/usr/local/lib/"
  1880. fi
  1881.  
  1882. # Avoid duplicate include directories
  1883. if test "$ZLIBINC" = "$TIFFINC"; then
  1884.     ZLIBINC=""
  1885. fi
  1886.  
  1887.  
  1888.  
  1889.  
  1890. # These are used to tell the Makefile what to actually do,
  1891. # depending on the available language bindings.
  1892.  
  1893. BINDINGS="pdflib_c"
  1894. BINDINGS_INSTALL="pdflib_c_install"
  1895. BINDINGS_UNINSTALL="pdflib_c_uninstall"
  1896. BINDINGS_TEST="pdflib_c_test"
  1897.  
  1898. if test "$WITH_CXX" = "yes" ; then
  1899.     BINDINGS="$BINDINGS pdflib_cpp";
  1900.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_cpp_install";
  1901.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_cpp_uninstall";
  1902.     BINDINGS_TEST="$BINDINGS_TEST pdflib_cpp_test";
  1903. fi
  1904. if test "$WITH_JAVA" = "yes" ; then
  1905.     BINDINGS="$BINDINGS pdflib_java";
  1906.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_java_install";
  1907.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_java_uninstall";
  1908.     BINDINGS_TEST="$BINDINGS_TEST pdflib_java_test";
  1909. fi
  1910. if test "$WITH_PERL" = "yes" ; then
  1911.     BINDINGS="$BINDINGS pdflib_perl";
  1912.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_perl_install";
  1913.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_perl_uninstall";
  1914.     BINDINGS_TEST="$BINDINGS_TEST pdflib_perl_test";
  1915. fi
  1916. if test "$WITH_PYTHON" = "yes" ; then
  1917.     BINDINGS="$BINDINGS pdflib_python";
  1918.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_python_install";
  1919.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_python_uninstall";
  1920.     BINDINGS_TEST="$BINDINGS_TEST pdflib_python_test";
  1921. fi
  1922. if test "$WITH_TCL" = "yes" ; then
  1923.     BINDINGS="$BINDINGS pdflib_tcl";
  1924.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_tcl_install";
  1925.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_tcl_uninstall";
  1926.     BINDINGS_TEST="$BINDINGS_TEST pdflib_tcl_test";
  1927. fi
  1928.  
  1929. DEFINES="$CFLAGS $DEFINES"
  1930.  
  1931. if test "$WITH_DEBUG" = "yes" ; then
  1932.     DEFINES="$DEFINES -DDEBUG"
  1933.     WITH_STATIC="yes"
  1934. fi
  1935.  
  1936. PDFLIB_STATIC=libpdf$VERSION.a
  1937.  
  1938. case $ac_sys_system in
  1939.     NetBSD*) PDFLIB_SHARED=libpdf$SO.$VERSION;;
  1940.     *)    PDFLIB_SHARED=libpdf$VERSION$SO;;
  1941. esac
  1942.  
  1943. # $PDFLIB is the name of the PDFlib library file, either static or shared
  1944.  
  1945. if test "$WITH_STATIC" = "yes" ; then
  1946.     # no language bindings without shared libraries
  1947.     BINDINGS=""
  1948.     BINDINGS_INSTALL=""
  1949.     BINDINGS_UNINSTALL=""
  1950.     BINDINGS_TEST=""
  1951.     CCSHARED=""
  1952.     PDFLIB=$PDFLIB_STATIC
  1953. else
  1954.     PDFLIB=$PDFLIB_SHARED
  1955. fi
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962. # avoid garbage in our linkage variable $PDFLIBLINK
  1963. if test "$TIFFLINK" = nope; then
  1964.        TIFFLINK=""
  1965. fi
  1966. if test "$ZLIBLINK" = nope; then
  1967.        ZLIBLINK=""
  1968. fi
  1969.  
  1970. # PDFLIBLINK contains the flags needed to link a program against PDFlib.
  1971. # This must work with the shared as well as the dynamic version.
  1972.  
  1973. case $ac_sys_system in
  1974.     NetBSD*) PDFLIBLINK="-lpdf $TIFFLINK $ZLIBLINK -lm";;
  1975.     *) PDFLIBLINK="-lpdf$VERSION $TIFFLINK $ZLIBLINK -lm";;
  1976. esac
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984. # ---------- Generate the Makefiles
  1985.  
  1986. trap '' 1 2 15
  1987. cat > confcache <<\EOF
  1988. # This file is a shell script that caches the results of configure
  1989. # tests run on this system so they can be shared between configure
  1990. # scripts and configure runs.  It is not useful on other systems.
  1991. # If it contains results you don't want to keep, you may remove or edit it.
  1992. #
  1993. # By default, configure uses ./config.cache as the cache file,
  1994. # creating it if it does not exist already.  You can give configure
  1995. # the --cache-file=FILE option to use a different cache file; that is
  1996. # what configure does when it calls configure scripts in
  1997. # subdirectories, so they share the cache.
  1998. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1999. # config.status only pays attention to the cache file if you give it the
  2000. # --recheck option to rerun configure.
  2001. #
  2002. EOF
  2003. # The following way of writing the cache mishandles newlines in values,
  2004. # but we know of no workaround that is simple, portable, and efficient.
  2005. # So, don't put newlines in cache variables' values.
  2006. # Ultrix sh set writes to stderr and can't be redirected directly,
  2007. # and sets the high bit in the cache file unless we assign to the vars.
  2008. (set) 2>&1 |
  2009.   case `(ac_space=' '; set) 2>&1` in
  2010.   *ac_space=\ *)
  2011.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2012.     # turns \\\\ into \\, and sed turns \\ into \).
  2013.     sed -n \
  2014.       -e "s/'/'\\\\''/g" \
  2015.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2016.     ;;
  2017.   *)
  2018.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2019.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2020.     ;;
  2021.   esac >> confcache
  2022. if cmp -s $cache_file confcache; then
  2023.   :
  2024. else
  2025.   if test -w $cache_file; then
  2026.     echo "updating cache $cache_file"
  2027.     cat confcache > $cache_file
  2028.   else
  2029.     echo "not updating unwritable cache $cache_file"
  2030.   fi
  2031. fi
  2032. rm -f confcache
  2033.  
  2034. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2035.  
  2036. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2037. # Let make expand exec_prefix.
  2038. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2039.  
  2040. # Any assignment to VPATH causes Sun make to only execute
  2041. # the first set of double-colon rules, so remove it if not needed.
  2042. # If there is a colon in the path, we need to keep it.
  2043. if test "x$srcdir" = x.; then
  2044.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2045. fi
  2046.  
  2047. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2048.  
  2049. # Transform confdefs.h into DEFS.
  2050. # Protect against shell expansion while executing Makefile rules.
  2051. # Protect against Makefile macro expansion.
  2052. cat > conftest.defs <<\EOF
  2053. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2054. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2055. s%\[%\\&%g
  2056. s%\]%\\&%g
  2057. s%\$%$$%g
  2058. EOF
  2059. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2060. rm -f conftest.defs
  2061.  
  2062.  
  2063. # Without the "./", some shells look in PATH for config.status.
  2064. : ${CONFIG_STATUS=./config.status}
  2065.  
  2066. echo creating $CONFIG_STATUS
  2067. rm -f $CONFIG_STATUS
  2068. cat > $CONFIG_STATUS <<EOF
  2069. #! /bin/sh
  2070. # Generated automatically by configure.
  2071. # Run this file to recreate the current configuration.
  2072. # This directory was configured as follows,
  2073. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2074. #
  2075. # $0 $ac_configure_args
  2076. #
  2077. # Compiler output produced by configure, useful for debugging
  2078. # configure, is in ./config.log if it exists.
  2079.  
  2080. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2081. for ac_option
  2082. do
  2083.   case "\$ac_option" in
  2084.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2085.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2086.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2087.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2088.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  2089.     exit 0 ;;
  2090.   -help | --help | --hel | --he | --h)
  2091.     echo "\$ac_cs_usage"; exit 0 ;;
  2092.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2093.   esac
  2094. done
  2095.  
  2096. ac_given_srcdir=$srcdir
  2097. ac_given_INSTALL="$INSTALL"
  2098.  
  2099. trap 'rm -fr `echo "bind/c/Makefile
  2100. bind/cpp/Makefile
  2101. bind/java/Makefile
  2102. bind/perl/Makefile
  2103. bind/perl/Makefile.PL
  2104. bind/python/Makefile
  2105. bind/tcl/Makefile
  2106. clients/Makefile
  2107. pdflib/Makefile
  2108. test/Makefile
  2109. util/Makefile
  2110. Makefile
  2111. " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2112. EOF
  2113. cat >> $CONFIG_STATUS <<EOF
  2114.  
  2115. # Protect against being on the right side of a sed subst in config.status.
  2116. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2117.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2118. $ac_vpsub
  2119. $extrasub
  2120. s%@CFLAGS@%$CFLAGS%g
  2121. s%@CPPFLAGS@%$CPPFLAGS%g
  2122. s%@CXXFLAGS@%$CXXFLAGS%g
  2123. s%@DEFS@%$DEFS%g
  2124. s%@LDFLAGS@%$LDFLAGS%g
  2125. s%@LIBS@%$LIBS%g
  2126. s%@exec_prefix@%$exec_prefix%g
  2127. s%@prefix@%$prefix%g
  2128. s%@program_transform_name@%$program_transform_name%g
  2129. s%@bindir@%$bindir%g
  2130. s%@sbindir@%$sbindir%g
  2131. s%@libexecdir@%$libexecdir%g
  2132. s%@datadir@%$datadir%g
  2133. s%@sysconfdir@%$sysconfdir%g
  2134. s%@sharedstatedir@%$sharedstatedir%g
  2135. s%@localstatedir@%$localstatedir%g
  2136. s%@libdir@%$libdir%g
  2137. s%@includedir@%$includedir%g
  2138. s%@oldincludedir@%$oldincludedir%g
  2139. s%@infodir@%$infodir%g
  2140. s%@mandir@%$mandir%g
  2141. s%@MACHDEP@%$MACHDEP%g
  2142. s%@CC@%$CC%g
  2143. s%@CPP@%$CPP%g
  2144. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2145. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2146. s%@RANLIB@%$RANLIB%g
  2147. s%@CXX@%$CXX%g
  2148. s%@SHELL@%$SHELL%g
  2149. s%@EXE@%$EXE%g
  2150. s%@OBJ@%$OBJ%g
  2151. s%@AR@%$AR%g
  2152. s%@VERSION@%$VERSION%g
  2153. s%@RM@%$RM%g
  2154. s%@SO@%$SO%g
  2155. s%@LDSHARED@%$LDSHARED%g
  2156. s%@CCSHARED@%$CCSHARED%g
  2157. s%@LINKFORSHARED@%$LINKFORSHARED%g
  2158. s%@JAVAINCLUDE@%$JAVAINCLUDE%g
  2159. s%@TCL@%$TCL%g
  2160. s%@TCLINCLUDE@%$TCLINCLUDE%g
  2161. s%@TCLPACKAGEDIR@%$TCLPACKAGEDIR%g
  2162. s%@TCLBIN@%$TCLBIN%g
  2163. s%@PYINCLUDE@%$PYINCLUDE%g
  2164. s%@PERL@%$PERL%g
  2165. s%@PERLINCLUDE@%$PERLINCLUDE%g
  2166. s%@PERLLIBDIR@%$PERLLIBDIR%g
  2167. s%@PERLMODDIR@%$PERLMODDIR%g
  2168. s%@PERLBOOLDEF@%$PERLBOOLDEF%g
  2169. s%@PERLLINK@%$PERLLINK%g
  2170. s%@TIFFINC@%$TIFFINC%g
  2171. s%@TIFFLINK@%$TIFFLINK%g
  2172. s%@ZLIBINC@%$ZLIBINC%g
  2173. s%@ZLIBLINK@%$ZLIBLINK%g
  2174. s%@BINDINGS@%$BINDINGS%g
  2175. s%@BINDINGS_INSTALL@%$BINDINGS_INSTALL%g
  2176. s%@BINDINGS_UNINSTALL@%$BINDINGS_UNINSTALL%g
  2177. s%@BINDINGS_TEST@%$BINDINGS_TEST%g
  2178. s%@PDFLIB@%$PDFLIB%g
  2179. s%@PDFLIB_STATIC@%$PDFLIB_STATIC%g
  2180. s%@PDFLIB_SHARED@%$PDFLIB_SHARED%g
  2181. s%@PDFLIBLINK@%$PDFLIBLINK%g
  2182. s%@DEFINES@%$DEFINES%g
  2183.  
  2184. CEOF
  2185. EOF
  2186.  
  2187. cat >> $CONFIG_STATUS <<\EOF
  2188.  
  2189. # Split the substitutions into bite-sized pieces for seds with
  2190. # small command number limits, like on Digital OSF/1 and HP-UX.
  2191. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2192. ac_file=1 # Number of current file.
  2193. ac_beg=1 # First line for current file.
  2194. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2195. ac_more_lines=:
  2196. ac_sed_cmds=""
  2197. while $ac_more_lines; do
  2198.   if test $ac_beg -gt 1; then
  2199.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2200.   else
  2201.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2202.   fi
  2203.   if test ! -s conftest.s$ac_file; then
  2204.     ac_more_lines=false
  2205.     rm -f conftest.s$ac_file
  2206.   else
  2207.     if test -z "$ac_sed_cmds"; then
  2208.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2209.     else
  2210.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2211.     fi
  2212.     ac_file=`expr $ac_file + 1`
  2213.     ac_beg=$ac_end
  2214.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2215.   fi
  2216. done
  2217. if test -z "$ac_sed_cmds"; then
  2218.   ac_sed_cmds=cat
  2219. fi
  2220. EOF
  2221.  
  2222. cat >> $CONFIG_STATUS <<EOF
  2223.  
  2224. CONFIG_FILES=\${CONFIG_FILES-"bind/c/Makefile
  2225. bind/cpp/Makefile
  2226. bind/java/Makefile
  2227. bind/perl/Makefile
  2228. bind/perl/Makefile.PL
  2229. bind/python/Makefile
  2230. bind/tcl/Makefile
  2231. clients/Makefile
  2232. pdflib/Makefile
  2233. test/Makefile
  2234. util/Makefile
  2235. Makefile
  2236. "}
  2237. EOF
  2238. cat >> $CONFIG_STATUS <<\EOF
  2239. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2240.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2241.   case "$ac_file" in
  2242.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2243.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2244.   *) ac_file_in="${ac_file}.in" ;;
  2245.   esac
  2246.  
  2247.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2248.  
  2249.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2250.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2251.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2252.     # The file is in a subdirectory.
  2253.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2254.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2255.     # A "../" for each directory in $ac_dir_suffix.
  2256.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2257.   else
  2258.     ac_dir_suffix= ac_dots=
  2259.   fi
  2260.  
  2261.   case "$ac_given_srcdir" in
  2262.   .)  srcdir=.
  2263.       if test -z "$ac_dots"; then top_srcdir=.
  2264.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2265.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2266.   *) # Relative path.
  2267.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2268.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2269.   esac
  2270.  
  2271.   case "$ac_given_INSTALL" in
  2272.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2273.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2274.   esac
  2275.  
  2276.   echo creating "$ac_file"
  2277.   rm -f "$ac_file"
  2278.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2279.   case "$ac_file" in
  2280.   *Makefile*) ac_comsub="1i\\
  2281. # $configure_input" ;;
  2282.   *) ac_comsub= ;;
  2283.   esac
  2284.  
  2285.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2286.   sed -e "$ac_comsub
  2287. s%@configure_input@%$configure_input%g
  2288. s%@srcdir@%$srcdir%g
  2289. s%@top_srcdir@%$top_srcdir%g
  2290. s%@INSTALL@%$INSTALL%g
  2291. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2292. fi; done
  2293. rm -f conftest.s*
  2294.  
  2295. EOF
  2296. cat >> $CONFIG_STATUS <<EOF
  2297.  
  2298. EOF
  2299. cat >> $CONFIG_STATUS <<\EOF
  2300.  
  2301. exit 0
  2302. EOF
  2303. chmod +x $CONFIG_STATUS
  2304. rm -fr confdefs* $ac_clean_files
  2305. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2306.  
  2307.